FROM ubuntu:22.04

LABEL name="cloudea"
LABEL email="cloudea@163.com"
LABEL date="2023/06/05"

ENV HOME=/root
ENV CSI=k8s-csi-fs

WORKDIR ${HOME}

COPY ${CSI} .

RUN apt update
RUN apt -y install nfs-common
RUN apt -y install sshfs
RUN apt -y install sshpass
RUN apt -y install s3fs

EXPOSE 50051
# /tmp仅仅用来做测试，需与绑定到宿主机/tmp
VOLUME [ "/var/lib/kubelet", "/tmp" ]
CMD ./${CSI}
